
function handleClick(el, binding) {
  el.addEventListener('click', e => {
    el.classList.add('is-disabled')
    el.disabled = true
    setTimeout(() => {
      el.disabled = false
      el.classList.remove('is-disabled')
    }, 3000)
  })
}
export default {
  bind(el, binding) {
    el.addEventListener('click', handleClick(el, binding), false)
  }
}
